import Vue from 'vue'
import Router from 'vue-router'
import Home from 'pages/home/home'
import ArticleColumn from 'pages/articleColumn/articleColumn'
import Article from 'pages/article/article'
import PsyTest from 'pages/psyTest/psyTest'
import TestRule from 'pages/testRule/testRule'
import Authorize from 'pages/authorize/authorize'
import Test from 'pages/test/test'
import TestResult from 'pages/testResult/testResult'
import PsyFm from 'pages/psyFm/psyFm'
import FmPlayer from 'pages/fmPlayer/fmPlayer'
import UserCenter from 'pages/userCenter/userCenter'
import MyPage from 'pages/myPage/myPage'
import AboutUs from 'components/about_us/about_us'
import FollowList from 'pages/follow_list/follow_list'
import MyTest from 'pages/my_test/my_test'

Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/home',
      name: 'Home',
      component: Home
    },
    {
      path: '/',
      redirect: '/home'
    },
    {
      path: '/authorize',
      name: 'Authorize',
      component: Authorize
    },
    {
      path: '/article/:aid',
      name: 'Article',
      component: Article
    },
    {
      path: '/articleColumn',
      name: 'ArticleColumn',
      component: ArticleColumn
    },
    {
      path: '/psyTest',
      name: 'PsyTest',
      component: PsyTest
    },
    {
      path: '/testRule/:tid',
      name: 'TestRule',
      component: TestRule
    },
    {
      path: '/test/:tid',
      name: 'Test',
      component: Test
    },
    {
      path: '/testResult/:tid',
      name: 'TestResult',
      component: TestResult
    },
    {
      path: '/psyFm',
      name: 'PsyFm',
      component: PsyFm,
    },
    {
      path: '/fmPlayer/:fmtid/:fid',
      name:'FmPlayer',
      component:FmPlayer
    },
    {
      path:'/userCenter',
      name:'UserCenter',
      component:UserCenter
    },{
      path:'/myPage',
      name:'MyPage',
      component:MyPage
    },
    {
      path: '/about_us',
      name:'AboutUs',
      component: AboutUs
    },
    {
      path: '/follow_list',
      name:'FollowList',
      component: FollowList
    },
    {
      path:'/my_test',
      name:"MyTest",
      component:MyTest
    }

  ]
})
